package com.nashuju.web.entity.article;

import java.util.Date;

import org.durcframework.core.expression.annotation.LikeDoubleField;
import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;

public class ArticleBaseSchLtId extends SearchEasyUI {

    private Integer idSch;
    private String subjectSch;
    private String picSch;
    private String authorSch;
    private String sourceSch;
    private String briefSch;
    private String keywordsSch;
    private String contentSch;
    private Integer hitsSch;
    private Integer posSch;

    public Integer getPosSch() {
        return posSch;
    }

    public void setPosSch(Integer posSch) {
        this.posSch = posSch;
    }

    private Integer haspollSch;
    private Integer isscrollSch;
    private Integer iscommentSch;
    private Integer iscommendSch;
    private Integer ispublishSch;
    private Date createdSch;
    private Date editedSch;
    private Integer parentIdSch;
    private Integer scIdSch;
    private Date createdStartSch;
    private Date createdEndSch;

    @ValueField(column = "created", equal = ">=")
    public Date getCreatedStartSch() {
        return createdStartSch;
    }

    public void setCreatedStartSch(Date createdStartSch) {
        this.createdStartSch = createdStartSch;
    }

    @ValueField(column = "created", equal = "<")
    public Date getCreatedEndSch() {
        if (createdEndSch != null) {
            return DateUtil.getDateAfterDay(createdEndSch, 1);
        }
        return createdEndSch;
    }

    public void setCreatedEndSch(Date createdEndSch) {
        this.createdEndSch = createdEndSch;
    }

    public void setIdSch(Integer idSch) {
        this.idSch = idSch;
    }

    @ValueField(column = "id", equal = "<=")
    public Integer getIdSch() {
        return this.idSch;
    }

    public void setSubjectSch(String subjectSch) {
        this.subjectSch = subjectSch;
    }

    @LikeDoubleField(column = "subject")
    public String getSubjectSch() {
        return this.subjectSch;
    }

    public void setPicSch(String picSch) {
        this.picSch = picSch;
    }

    @ValueField(column = "pic")
    public String getPicSch() {
        return this.picSch;
    }

    public void setAuthorSch(String authorSch) {
        this.authorSch = authorSch;
    }

    @ValueField(column = "author")
    public String getAuthorSch() {
        return this.authorSch;
    }

    public void setSourceSch(String sourceSch) {
        this.sourceSch = sourceSch;
    }

    @ValueField(column = "source")
    public String getSourceSch() {
        return this.sourceSch;
    }

    public void setBriefSch(String briefSch) {
        this.briefSch = briefSch;
    }

    @ValueField(column = "brief")
    public String getBriefSch() {
        return this.briefSch;
    }

    public void setKeywordsSch(String keywordsSch) {
        this.keywordsSch = keywordsSch;
    }

    @LikeDoubleField(column = "keywords")
    public String getKeywordsSch() {
        return this.keywordsSch;
    }

    public void setContentSch(String contentSch) {
        this.contentSch = contentSch;
    }

    @LikeDoubleField(column = "content")
    public String getContentSch() {
        return this.contentSch;
    }

    public void setHitsSch(Integer hitsSch) {
        this.hitsSch = hitsSch;
    }

    @ValueField(column = "hits")
    public Integer getHitsSch() {
        return this.hitsSch;
    }

    public void setHaspollSch(Integer haspollSch) {
        this.haspollSch = haspollSch;
    }

    @ValueField(column = "haspoll")
    public Integer getHaspollSch() {
        return this.haspollSch;
    }

    public void setIsscrollSch(Integer isscrollSch) {
        this.isscrollSch = isscrollSch;
    }

    @ValueField(column = "isscroll")
    public Integer getIsscrollSch() {
        return this.isscrollSch;
    }

    public void setIscommentSch(Integer iscommentSch) {
        this.iscommentSch = iscommentSch;
    }

    @ValueField(column = "iscomment")
    public Integer getIscommentSch() {
        return this.iscommentSch;
    }

    public void setIscommendSch(Integer iscommendSch) {
        this.iscommendSch = iscommendSch;
    }

    @ValueField(column = "iscommend")
    public Integer getIscommendSch() {
        return this.iscommendSch;
    }

    public void setIspublishSch(Integer ispublishSch) {
        this.ispublishSch = ispublishSch;
    }

    @ValueField(column = "ispublish")
    public Integer getIspublishSch() {
        return this.ispublishSch;
    }

    public void setCreatedSch(Date createdSch) {
        this.createdSch = createdSch;
    }

    @ValueField(column = "created")
    public Date getCreatedSch() {
        return this.createdSch;
    }

    public void setEditedSch(Date editedSch) {
        this.editedSch = editedSch;
    }

    @ValueField(column = "edited")
    public Date getEditedSch() {
        return this.editedSch;
    }

    public void setParentIdSch(Integer parentIdSch) {
        this.parentIdSch = parentIdSch;
    }

    @ValueField(column = "parent_id")
    public Integer getParentIdSch() {
        return this.parentIdSch;
    }

    public void setScIdSch(Integer scIdSch) {
        this.scIdSch = scIdSch;
    }

    @ValueField(column = "sc_id")
    public Integer getScIdSch() {
        return this.scIdSch;
    }


}
